package com.meila.design.mode.state;

/**
 * ***********************************************************
 *
 * @类名 : cms {XXX.java}
 * @DESCRIPTION : ===========XXXX==================
 * @AUTHOR :  meila-x->reese
 * @DATE : 2016/3/2
 * ***********************************************************
 */
public class Person {
    private State state ;

    private int flag ;

    public Person(State state, int flag) {
        this.state = state;
        this.flag = flag;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public void doSomeThing(){
        this.state.doSomeThing(this);
    }
}
